import convolution from '../operations/convolution'

const roberts = function (pixels, amount, canvas) {
  const operator = [0, 0, 0, 1, -1, 0, 0, 0, 0]

  return convolution(canvas, pixels, operator)
}

export default roberts
